<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../css/header.css">
    <link rel="stylesheet" href="../css/footer.css">
    <link rel="stylesheet" href="../css/jingdian.css">
    <script src="../js/jquery-1.js"></script>
    <script src="../js/cookie.js"></script>
</head>
<body style="width:100%;height:100%">
  
    <div style="width:1200px;margin:10% auto;height:600px;">
        <div>所属院校：<b>天津机电职业技术学院</b></div>
        <div>姓名：<b>刘亚峰</b></div>
        <div>所属专业：<b>CXXXXX</b></div>
        <div>专业教师：<b>李强</b></div>
        <div>所属年级：<b>16级</b></div>
        <div>项目名称：<div>
        <b>我的家乡-甘肃</b>
        <div style="width:200px;margin:40px auto;background-color:#cecece">
        姓名:<input type="text" style="width:150px;margin:10px auto" id="name" placeholder="请输入个人姓名" value="">
        密码:<input type="password" style="width:150px;margin:10px auto" id="pass" placeholder="请输入密码" value="">
        <button  style="border:none ;border:1px solid #999;
        background-color:rgb(40, 199, 204)" id="btn">点击注册</button>
    </div>
</div>
</div>
</body>
<script>
    var btn=document.getElementById("btn")
    btn.onclick=function(){
        var name=document.getElementById("name").value
        var pass=document.getElementById("pass").value
       var b= setCookie("name",name,15)
       var p= setCookie("pass",pass,15)
       if (window.confirm("注册成功是否去登录页面")) {
window.location.href = "../html/login.html";
} else {
window.location.href = "" ;
}
    }

</script>
</html>